var b = new Date('2022-02-25') // Feb 25 2022
var a = new Date(2022, 02, 25) // Mar 25 2022

// new Date(2022,13,1) => new Date(2023, 2, 1)